<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>修改设备基础信息</title>
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/form.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/jquery-ui.css" />
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap">
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local"><span>位置：设备基础信息管理 > 设备故障处理 > 设备故障处理</span></p>
	            
			    	<div class="article_list" style="width: 98.5%; margin: 0px auto;">
			            <!------- 内容 ------->
			            <div class="content content1">
			                <!-- 用户列表内容区 -->
			                <div class="con con_01">
			                    <!-- 表单信息填写区 -->
			                    <h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>设备故障信息</span><span class="necessary">（带*号为必填项）</span></h4>
			                    <div class="write_area">
			                        <form id="addFrom" action="" method="post">
			                            <table class="contentText" border="1" cellspacing="0" cellpadding="0" width="99%">
											<tbody>
			                                    <tr>
			                                        <th>设备名称：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="设备二" readonly> <span class="redColor">*</span>
			                                        </td>
			                                        <th>设备编号：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="002" readonly> <span class="redColor">*</span>
			                                        </td>
			                                        <th>所属产线：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="产线二" readonly> <span class="redColor">*</span>
			                                        </td>
			                                    </tr>
			                                    <tr>
			                                        <th>是否影响生产：</th>
			                                        <td>
														<input id="" name="" type="text" value="是" readonly> <span class="redColor">*</span>
			                                        </td>
			                                        <th>紧急程度：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="紧急" readonly> <span class="redColor">*</span>
													</td>
													<th>发起人：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="张三" readonly> <span class="redColor"></span>
			                                        </td>
			                                    </tr>
			                                    <tr>
													<th>发起时间：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="2020-1-9" readonly> <span class="redColor"></span>
			                                        </td>
			                                        <th>处理人：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="李四"> <span class="redColor">*</span>
													</td>
													<th>状态：</th>
			                                        <td>
			                                        	<input id="" name="" type="text" value="待处理" readonly> <span class="redColor">*</span>
			                                        </td>
												</tr>
												<tr>
													<th>故障类型：</th>
			                                        <td>
			                                        	<select name="">
			                                        		<option value="">磨损性故障</option>
															<option value="">腐蚀性故障</option>
															<option value="">断裂性故障</option>
															<option value="">老化性故障</option>
															<option value="">操作性故障</option>
															<option value="">其他故障类型</option>
			                                        	</select> 
			                                        	<span class="redColor">*</span>
													</td>
													<th>处理时间：</th>
													<td>
			                                        	<input id="dateControl" name="" type="text" value="" readonly> <span class="redColor">*</span>
													</td>
												</tr>
												<tr>
			                                        <th>故障描述：</th>
			                                        <td colspan="5">
			                                        	<textarea style="width: 95%;height: 100px;" readonly>故障一</textarea> <span class="redColor">*</span>
			                                        </td>
												</tr>
												<tr>
			                                        <th>处理方法：</th>
			                                        <td colspan="5">
			                                        	<textarea style="width: 95%;height: 100px;"></textarea> <span class="redColor">*</span>
			                                        </td>
			                                    </tr>
			                                </tbody>
			                            </table>
			                        </form>
			                        <!-- 保存、重置按钮区 -->
			                        <div align="center" class="btn_submit">
			                            <a class="bgd_blue_two img_hand contentText" id="handle">处理</a>
			                            <a href="javascript:history.back(-1)" class="bgd_white_two img_hand"> 返回 </a>
			                        </div>
			                    </div>
			                </div>
			            </div>
			        </div>
				</div>
			</div>
			<!-- 版尾  -->
			<div class="ending">
				Copyright© 2019-2020 磐基技术有限公司
			</div>
		</div>
	</body>
	<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/3rd/jquery-ui.js" type="text/javascript"></script>
	<script src='../../js/common/common.js' type='text/javascript' charset='utf-8'></script>
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$(".info_area td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");   
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");   
			}
		);
		
		// 日期控件
		$(function(){
	        $("#dateControl").datepicker({
	        	dateFormat : 'yy-mm-dd',
	            monthNamesShort:["January","February","March","April","May","June", "July","August","September","October","November","December"],
	 		 	changeYear:true,
	 		 	changeMonth:true,
	 		 	showOn:"button",
	 		 	buttonImage:"../../img/button/calendar.png",
	 		 	buttonImageOnly:false
	        });
		 });
		 
		 // 处理故障
		 $("#handle").click(function() {
			window.confirm("确认处理该故障?",function(result){
				/*if(result){
					var deleteMaterialsUrl = basePath+"commonTechnology/deletesCommonTechnologyMethod";
					CommonUtils.getAjaxData({
						url : deleteMaterialsUrl,
						data : JSON.stringify(list),
						contentType : 'application/json; charset=utf-8',
						dataType:'json',
						type : 'POST',
						async:true,
					}, function(data) {
						if (data['msg'] =="SUCCESS"){
							getTableData();
						}
					});
				}*/
			});
		 });
		 
	</script>
</html>
